//C:8.2:firstref.cpp -- defining and using a_reference
#include <iostream>
int main(void)
{
    using namespace std;
    int rats = 101;
    int & rodents = rats;    // rodents is a reference
    cout << "rats = " << rats;
    cout << ", rodents = " << rodents << '\n';
    rodents++;

    cout << "rats = " << rats;
    cout << ", rodents = " << rodents << '\n';

    // some implements requires type casting the following
    // address to type unsigned
    cout << " rats address  = " << &rats;
    cout << ", rodents address = " << &rodents << '\n';
    return 0;
}


